<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix = "c"  uri = "http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<link rel="stylesheet" type="text/css"  href="css/bootstrap.min.css"/>
	<link rel="stylesheet" type="text/css" href="js/select2/select2.css" />
	<title>凯胜项目管理系统</title>
	<style type="text/css">
		body{
			padding-top:50px;
		}
	</style>
</head>
<body class="body">
	<%@include file="same2.jsp" %>
	
	<div class="container">
		<div class="row">
			<div class="span9">
					<form class="form-horizontal" id="myform" action="task.jspx?tmothed=add" method="post">
						<fieldset>
						<legend>添加新任务</legend>
						<div class="control-group">
							<label class="control-label" for="input01">任务名称</label>
							<div class="controls">
								<input type="text" name="name" class="span5" id="input01">
								<p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p>
							</div>
						</div>
						<input type="hidden" name="id" value="${requestScope.goalid }">
						<div class="control-group">
							<label class="control-label" for="input01">开始时间</label>
							<div class="controls">
								<input type="text" name="start" class="span5" id="input01">
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input01">截止时间</label>
							<div class="controls">
								<input type="text" name="end" class="span5" id="input01">
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input01">任务描述</label>
							<div class="controls">
								<textarea   name="desc" class="span5"  id="input01" rows="6"></textarea>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input01">级别</label>
							<div class="controls">
								<select name="isImport">
									<option>重要紧急</option>
									<option>重要不紧急</option>
									<option>紧急不重要</option>
									<option>不紧急不重要</option>
							  </select>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input01">任务负责人</label>
							<div class="controls">
								<select name="manager" class="multiSelect" style="width:200px">
					                <c:forEach items="${requestScope.userList}" var="user">
					                	<option value="${user.id }">${user.username }</option>
					                </c:forEach>
					              </select>
							</div>
						</div>
				       <div class="form-actions">
							<button type="submit" class="btn btn-primary">保存</button>
							<button class="btn" onclick="location.back()">返回</button>
					  </div>
						</fieldset>
					</form>
			</div>
		</div>
	</div>
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<script type="text/javascript" src="js/select2/select2.min.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){
			$(".multiSelect").select2();
		});
	</script>
</body>
</html>